//
//  CAUpdateUserInfoApi.m
//  LNH
//
//  Created by twentylx on 2018/2/26.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import "CAUpdateUserInfoApi.h"

@implementation CAUpdateUserInfoApi {
    NSString *_wechat;
    NSString *_cId;
    NSString *_cIdName;
}

- (instancetype) initWithWechat:(NSString *) wechat CId:(NSString *) cId CIdName:(NSString *) cIdName {
    self = [super init];
    if (self) {
        _wechat = wechat;
        _cId = cId;
        _cIdName = cIdName;
    }
    return self;
}

-(YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

-(id)requestArgument{
    return @{
             @"token":GVUD.token,
             @"wechat_id":_wechat,
             @"cid":_cId,
             @"cid_name":_cIdName,
             };
}

-(NSString *)requestUrl{
    NSLog(@"%@", [NSString stringWithFormat:@"%@supplementUserInfo",BASE_SERVICE_DOMAIN]);
    return [NSString stringWithFormat:@"%@supplementUserInfo",BASE_SERVICE_DOMAIN];
}

@end

